"""
======================
@author:SUNLIN
@time:2025/3/4 19:46
@email:1232@163.com
======================
"""

# 导入模块

import requests as requests

# 定义url
url_douban_movie = 'https://movie.douban.com/'

# headers
headers = {'user-agent': 'my-app/0.0.1'}

# 访问、并获取网页信息
response_douban_movice = requests.get(url=url_douban_movie, headers=headers)

# print(response_douban_movice.text)

url_baidu = 'https://www.baidu.com/'

response_baidu = requests.get(url=url_baidu, headers=headers)

print(response_baidu.text)



